using System.Windows.Forms;
using Microsoft.CRM.ThirdParty.Extensions.ProjectCreator.Presentation;

namespace Microsoft.CRM.ThirdParty.Extensions.ProjectCreator.Eventing
{
    public class ProjectEventAggregator
    {

        private static IProjectCreationFormView _subscriber;

        public void Subscribe(IProjectCreationFormView view)
        {
            _subscriber = view;
        }

        public void NotifyChange(string message)
        {
            _subscriber.AssignMessage(message);
        }

        public void Clear()
        {
            _subscriber = null;
        }
    }
}